var mongoose = require('mongoose')
var Schema = mongoose.Schema;
var ObjectId  = Schema.ObjectId;
var utility = require('utility');
var UserSchema = new Schema({
  name: String,
  email: String,
  password: String,
  company: String,
  description: {type: String, default: "still no description"},
  hashId: String,   //用于生成头像
  activated: {type: Boolean, default: false},
  admin: {type: Boolean, default: false},
  achievements: [{type:String}],
})



var User = mongoose.model('User', UserSchema)
